<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>XenC: src/eval.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">XenC
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Open-source tool for data selection in NLP</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">eval.cpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Class handling evaluation system.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="eval_8h_source.html">../include/eval.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_static_data_8h_source.html">../include/utils/StaticData.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for eval.cpp:</div>
<div class="dyncontent">
<div class="center"><img src="eval_8cpp__incl.png" border="0" usemap="#src_2eval_8cpp" alt=""/></div>
<map name="src_2eval_8cpp" id="src_2eval_8cpp">
<area shape="rect" id="node2" href="eval_8h.html" title="Class handling evaluation system. " alt="" coords="3740,79,3854,104"/>
<area shape="rect" id="node50" href="_static_data_8h.html" title="File handling all data objects used by XenC in a static way. " alt="" coords="33,165,212,191"/>
<area shape="rect" id="node5" href="common_8h.html" title="File containing all common classes/structures/functions of many classes of XenC. " alt="" coords="3984,325,4095,351"/>
<area shape="rect" id="node37" href="corpus_8h.html" title="Class handling corpus&#45;related functionalities. " alt="" coords="205,252,277,277"/>
<area shape="rect" id="node38" href="xenoption_8h.html" title="Singleton class handling XenC options accessors/mutators. " alt="" coords="352,252,442,277"/>
<area shape="rect" id="node39" href="_xen_l_mken_8h.html" title="Class handling KenLM estimation, loading, querying... " alt="" coords="286,165,383,191"/>
</map>
</div>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a08bdd00a4373b59f0e8040c9b62e66ec"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="eval_8cpp.html#a08bdd00a4373b59f0e8040c9b62e66ec">taskEval</a> (int pc, boost::shared_ptr&lt; <a class="el" href="class_corpus.html">Corpus</a> &gt; ptrCorp, boost::shared_ptr&lt; <a class="el" href="class_xen_vocab.html">XenVocab</a> &gt; ptrVoc, boost::shared_ptr&lt; <a class="el" href="class_corpus.html">Corpus</a> &gt; ptrDevCorp, boost::shared_ptr&lt; <a class="el" href="eval_8h.html#a2c850c27efca97b26b551ccdc42fd7b2">EvalMap</a> &gt; ptrDist)</td></tr>
<tr class="memdesc:a08bdd00a4373b59f0e8040c9b62e66ec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Thread-safe evaluation function.  <a href="#a08bdd00a4373b59f0e8040c9b62e66ec">More...</a><br /></td></tr>
<tr class="separator:a08bdd00a4373b59f0e8040c9b62e66ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Class handling evaluation system. </p>
<dl class="section author"><dt>Author</dt><dd>Anthony Rousseau </dd></dl>
<dl class="section version"><dt>Version</dt><dd>2.0.0 </dd></dl>
<dl class="section date"><dt>Date</dt><dd>18 March 2016 </dd></dl>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a08bdd00a4373b59f0e8040c9b62e66ec"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void taskEval </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>pc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">boost::shared_ptr&lt; <a class="el" href="class_corpus.html">Corpus</a> &gt;&#160;</td>
          <td class="paramname"><em>ptrCorp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">boost::shared_ptr&lt; <a class="el" href="class_xen_vocab.html">XenVocab</a> &gt;&#160;</td>
          <td class="paramname"><em>ptrVoc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">boost::shared_ptr&lt; <a class="el" href="class_corpus.html">Corpus</a> &gt;&#160;</td>
          <td class="paramname"><em>ptrDevCorp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">boost::shared_ptr&lt; <a class="el" href="eval_8h.html#a2c850c27efca97b26b551ccdc42fd7b2">EvalMap</a> &gt;&#160;</td>
          <td class="paramname"><em>ptrDist</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Thread-safe evaluation function. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pc</td><td>: integer representing the percentage of the scored out-of-domain corpus to take </td></tr>
    <tr><td class="paramname">ptrCorp</td><td>: shared pointer on the <a class="el" href="class_corpus.html" title="Corpus-related functionalities. ">Corpus</a> object representing the part of selection result file </td></tr>
    <tr><td class="paramname">ptrVoc</td><td>: shared pointer on the <a class="el" href="class_xen_vocab.html" title="Class handling a XenC vocabulary. ">XenVocab</a> object representing the vocabulary to use for eval </td></tr>
    <tr><td class="paramname">ptrDevCorp</td><td>: shared pointer on the <a class="el" href="class_corpus.html" title="Corpus-related functionalities. ">Corpus</a> object representing the development set </td></tr>
    <tr><td class="paramname">ptrDist</td><td>: shared pointer on the EvalMap type containing the evaluation scores </td></tr>
  </table>
  </dd>
</dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="eval_8cpp_a08bdd00a4373b59f0e8040c9b62e66ec_cgraph.png" border="0" usemap="#eval_8cpp_a08bdd00a4373b59f0e8040c9b62e66ec_cgraph" alt=""/></div>
<map name="eval_8cpp_a08bdd00a4373b59f0e8040c9b62e66ec_cgraph" id="eval_8cpp_a08bdd00a4373b59f0e8040c9b62e66ec_cgraph">
<area shape="rect" id="node2" href="namespace_xen_common.html#ad4f4868634e46d6ee82e57d343a77abe" title="Template converting a value into a string with a precision of 20. " alt="" coords="125,5,278,31"/>
<area shape="rect" id="node3" href="class_xen_i_o.html#a61aa80bb58f6a42aa52b7360758ba431" title="Deletes a file from the filesystem. " alt="" coords="148,55,254,80"/>
</map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="eval_8cpp_a08bdd00a4373b59f0e8040c9b62e66ec_icgraph.png" border="0" usemap="#eval_8cpp_a08bdd00a4373b59f0e8040c9b62e66ec_icgraph" alt=""/></div>
<map name="eval_8cpp_a08bdd00a4373b59f0e8040c9b62e66ec_icgraph" id="eval_8cpp_a08bdd00a4373b59f0e8040c9b62e66ec_icgraph">
<area shape="rect" id="node2" href="class_eval.html#a0c3f6f4605b2763e8e18a12b54779baf" title="Computes an evaluation bount by the high and low integers (in percentage) " alt="" coords="125,5,221,31"/>
<area shape="rect" id="node3" href="class_eval.html#a9f7cf5cbc48c414a0cef2a8ccb27ad56" title="Computes the best theoretical point based on current evaluation. " alt="" coords="269,5,356,31"/>
</map>
</div>
</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Mar 18 2016 17:22:37 for XenC by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
